<div class="full-screen">
    <div class="page-group">
        <div class="page page-current address_pageBOX">
            <div class="coupon_page_top">
                <a href="<{link app=b2c ctl=wap_member act=index}>"><{img class="coupon_top_return" src="images/icon04.png" app="wap"}></a>
                <div class="coupon_top_text">地址管理</div>
            </div>

            <div>
                <{if $is_allow}><a class="address_page_bottom" href="<{link app=b2c ctl=wap_member act=add_receiver}>">+ 新增地址</a><{/if}>

            </div>
            <{if !$is_allow}>
            <div class="count f-red">最多只能添加10个地址</div>
            <{/if}>
            <{if !$receiver}>
            <div class="nocoupon_content">
                <{img class="nocoupon_img" src="images/img10_b.png" app="wap"}>
                <div class="nocoupon_cue">暂无收货地址</div>
                <div class="nocoupon_button"><a href="./">返回首页</a></div>
            </div>
            <{else if}>
            <{foreach from=$receiver item=items key=key}>
            <div class="addressBOX">

                <div class="address_contentA">
                    <div class="address_info_a">
                        <div class="supervise_name"><{$items.name|escape:'html'}></div>
                        <div class="supervise_iphone"><{if $items.mobile}><{$items.mobile|escape:'html'}><{else}><{$items.tel|escape:'html'}><{/if}></div>
                        <div class="supervise_number"><{$items.zip|escape:'html'}></div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="address_info_b"> <{$items.area|region}><{$items.addr|escape:'html'}></div>
                </div>
                <div class="address_contentB">
                    <div class="default_address">
                        <{if $items.def_addr}>
                        <{img class="default_address_img" src="images/icon01.png" app="wap" }>
                        <span class="default_address_text">默认地址</span>
                        <{else}>
                        <{img class="default_address_img" src="images/icon01_b.png" app="wap" }>
                        <a href='<{link app=b2c ctl=wap_member act=set_default arg0=$items.addr_id arg1=2}>'><span class="default_address_text">设为默认</span></a>
                        <{/if}>
                        <div class="clearfix"></div>
                    </div>
                    <div class="edit_box">
                        <{img class="edit_img" src="images/icon03.png" app="wap"}>
                        <span class="edit_text"><a href="<{link app=b2c ctl=wap_member act=del_rec arg0=$items.addr_id}>" class="del">删除</a></span>
                        <div class="clearfix"></div>
                    </div>
                    <div class="delete_box">
                        <{img class="edit_img" src="images/icon02.png" app="wap"}>
                        <span class="edit_text"><a href="<{link app=b2c ctl=wap_member act=modify_receiver arg0=$items.addr_id}>">编辑</a></span>
                        <div class="clearfix"></div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <{/foreach}>
            <{/if}>
            <br><br>
        </div>
    </div>
</div>
<script type="text/javascript">
    $('.nav_top_bg').hide();
    $('.bar-tab').hide();
$('.del').bind('click',function(){
    if(confirm('确定删除该地址？'))
    $.post(this.href,function(re){
        var o = JSON.parse(re);
        if(o.success){
            new Dialog($('#success'),{
                title: o.success,
                height:10
            });
            setTimeout(function(){location.reload(true)},2000);
        }else{
            return alert(o.error);
        }
    });
    return false;
});
</script>